import { Global, Module } from '@nestjs/common';

import { DingdingController } from './dingding.controller';
import { DingdingService } from './dingding.service';
import { RobotModule } from './robot/robot.module';
import { DingAuthService } from './sdk/auth.service';
import { DingCardService } from './sdk/card.service';
import { DingClientService } from './sdk/client.serivce';
import { DingMiService } from './sdk/im.service';
import { DingWorkflowService } from './sdk/workflow.service';

@Global()
@Module({
  controllers: [DingdingController],
  providers: [
    DingdingService,
    DingAuthService,
    DingWorkflowService,
    DingClientService,
    DingCardService,
    DingMiService,
  ],
  exports: [
    DingdingService,
    DingAuthService,
    DingWorkflowService,
    DingClientService,
    DingCardService,
    DingMiService,
  ],
  imports: [RobotModule],
})
export class DingdingModule {}
